/*
 * @Author: your name
 * @Date: 2021-09-01 19:08:46
 * @LastEditTime: 2021-09-01 19:08:47
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \briup\5-javascript\day08\作业.js
 */

//密码  密码长度为8-16 不能是纯数字和纯字母 不能包含空格 区分大小写
var pattern = /^(?![0-9 a-z A-Z]+$)(?!\s)[0-9 a-z A-Z]{8-16}$/g;
var str2 = '124789089 abc';
var str3 = '123456789';
var str4 = 'abcdefghij';
var str5 = '0000ahjkli';
console.log(pattern.test(str2));
console.log(pattern.test(str3));
console.log(pattern.test(str4));
console.log(pattern.test(str5));